﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Frontend/Frontend.Master" Inherits="System.Web.Mvc.ViewPage<IntroduceCompany.ArticleListView>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%--<!--title menu-->
<div class="header-bottom">
    <div class="tit-left"></div>
    <div class="tit-right">
        <h1>Services</h1>
    </div>
    <div class="clear"></div>--%>
    <table border="0" cellpadding="0" cellspacing="0" width="100% ;">
        <tr>
            <td class="col-left">
                <% Html.RenderPartial("/Views/Frontend/Article/Left.ascx");%>
            </td>
            <td class="col-center">
            <% if (ViewData["Article_Avaibility"] == "true")
               { %>

                <div class="text">
                    <!--beging content details-->
                    <h2><%= Html.Encode(Model.Title)%></h2>                    
                        <%= Model.Content%>
                    <!--end content details-->
                    <div class="divider_space"></div>


                    <%  string[] roleList = IntroduceCompany.Util.ConstantClass.autArticle.Split(',');
                            foreach (string roleID in roleList)
                            {
                                if (Context.User.IsInRole(roleID))
                                { %>
                        <div>
                        <a href="<%= Url.Action("Edit", "Article", new { articleID = Model.ArticleID, languageID = Model.LanguageID, articleTypeID = Model.ArticleTypeID }) %>" target="_blank">
                           [Chỉnh sửa] </a>
                        </div>
                        <%       break;
                                }
                            }%>

             <%}
               else
               { %>
                  Không có ngôn ngữ này hay bài viết này không tồn tại.
             <%} %>
                </div>
            </td>
        </tr>
    </table>
<%--</div>--%>
</asp:Content>
